package com.ruoyi.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.course.domain.ExamCourseTag;
import com.ruoyi.course.vo.ExamCourseTagVo;
import com.ruoyi.course.mapper.ExamCourseTagMapper;
import com.ruoyi.course.service.IExamCourseTagService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课程标签Service业务层处理
 *
 * @author Tellsea
 * @date 2025-09-25
 */
@Service
public class ExamCourseTagServiceImpl extends ServiceImpl<ExamCourseTagMapper, ExamCourseTag> implements IExamCourseTagService {

    @Override
    public TableDataInfo<ExamCourseTagVo> queryList(ExamCourseTagVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamCourseTagVo> queryAll(ExamCourseTagVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamCourseTagVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
